package com.itc.dispatch.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.itc.common.core.validate.Add;
import com.itc.common.core.validate.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *
 * @TableName sys_flow_type
 */
@TableName(value ="sys_flow_type")
@Data
public class SysFlowType implements Serializable {
    /**
     * 流程类型存储表主键id
     */

    @ApiModelProperty("流程类型存储表主键id")
    @NotNull(message = "主键id不能为空",groups = {Update.class})
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 流程类型名称
     */
    @ApiModelProperty("流程类型名称")
    @NotBlank(message = "流程类型名称不能为空",groups = {Add.class,Update.class})
    private String flowName;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private String createDate;



    /**
     * 0_正常，1_停用
     */
    @ApiModelProperty("菜单状态，0_正常，1_停用")
    @NotNull(message = "菜单状态不能为空",groups = {Add.class,Update.class})
    private Integer status;

    /**
     * 权限标识
     */
    @ApiModelProperty("权限标识")
    @NotBlank(message = "菜单状态不能为空",groups = {Add.class,Update.class})
    private String permissionIdentification;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    @NotNull(message = "菜单状态不能为空",groups = {Add.class,Update.class})
    private Integer sort;

    /**
     * 0_正常，1_删除
     */
    @ApiModelProperty("0_正常，1_删除")
    private Integer delete;

    /**
     * 父级id
     */
    @ApiModelProperty("父级id")
    private Long parentId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
